package lhy.autoparts.pojo;

import lhy.frontend.annotation.EntityComment;
import lhy.orm.Serializer;
import lhy.orm.annotation.Column;
import lhy.lhyorm.field.DatabaseField;
import lhy.lhyorm.table.DatabaseTable;

import java.io.Serializable;
import java.util.Date;

@DatabaseTable(tableName = "StockImport")
@EntityComment("进货单")
public class StockImport implements Serializable {
    @Column("单号")
    @DatabaseField(id=true) public String  id;
    @Column("供应商")
    @DatabaseField(foreign=true  )
    public Supplier supplier;
    @Column("入库日期")@DatabaseField
    public Date date;
    //应付金额放到vo计算
    /*@Column("应付金额")@DatabaseField
    public double accPay;*/
    @Column("实付金额")@DatabaseField
    public double actRec;
    /*@Column("交易状态")@DatabaseField
    public char tranState;*/
    @Column("操作用户")
    @DatabaseField(foreign=true )
    public User user;
    @Column("备注")
    @DatabaseField(canBeNull=true) public String  comment;
    @Override
    public String toString() {
        return Serializer.doSerialize(this);
    }
}
